<template>
    <view :style="'width: 100%;height:'+ statusBarHeight +'px;'"></view>
</template>
<script setup>
    import { ref } from 'vue'
    const statusBarHeight = ref(null)
    uni.getSystemInfo({
        success(res) {
            console.log(res)
            statusBarHeight.value = res.statusBarHeight
        }
    });
</script>